package com.ruoyi.basebill.mapper;

import java.util.List;
import com.ruoyi.basebill.domain.OmsSaleorderbill;
import com.ruoyi.basebill.domain.OmsSaleorderbillentry;

/**
 * OMS销售订单Mapper接口
 * 
 * @author ruoyi
 * @date 2023-02-08
 */
public interface OmsSaleorderbillMapper 
{
    /**
     * 查询OMS销售订单
     * 
     * @param id OMS销售订单主键
     * @return OMS销售订单
     */
    public OmsSaleorderbill selectOmsSaleorderbillById(Long id);

    /**
     * 查询OMS销售订单列表
     * 
     * @param omsSaleorderbill OMS销售订单
     * @return OMS销售订单集合
     */
    public List<OmsSaleorderbill> selectOmsSaleorderbillList(OmsSaleorderbill omsSaleorderbill);

    public List<OmsSaleorderbill> selectOmsSaleorderbillDetailList(OmsSaleorderbill omsSaleorderbill);

    /**
     * 新增OMS销售订单
     * 
     * @param omsSaleorderbill OMS销售订单
     * @return 结果
     */
    public int insertOmsSaleorderbill(OmsSaleorderbill omsSaleorderbill);

    /**
     * 修改OMS销售订单
     * 
     * @param omsSaleorderbill OMS销售订单
     * @return 结果
     */
    public int updateOmsSaleorderbill(OmsSaleorderbill omsSaleorderbill);

    /**
     * 删除OMS销售订单
     * 
     * @param id OMS销售订单主键
     * @return 结果
     */
    public int deleteOmsSaleorderbillById(Long id);

    /**
     * 批量删除OMS销售订单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsSaleorderbillByIds(Long[] ids);

    /**
     * 批量删除OMS销售订单明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOmsSaleorderbillentryByParentids(Long[] ids);
    
    /**
     * 批量新增OMS销售订单明细
     * 
     * @param omsSaleorderbillentryList OMS销售订单明细列表
     * @return 结果
     */
    public int batchOmsSaleorderbillentry(List<OmsSaleorderbillentry> omsSaleorderbillentryList);
    

    /**
     * 通过OMS销售订单主键删除OMS销售订单明细信息
     * 
     * @param id OMS销售订单ID
     * @return 结果
     */
    public int deleteOmsSaleorderbillentryByParentid(Long id);
}
